package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * CompereListId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class CompereListId implements java.io.Serializable {

	// Fields

	private Integer mtId;
	private Integer uid;

	// Constructors

	/** default constructor */
	public CompereListId() {
	}

	/** full constructor */
	public CompereListId(Integer mtId, Integer uid) {
		this.mtId = mtId;
		this.uid = uid;
	}

	// Property accessors

	@Column(name = "mt_id")
	public Integer getMtId() {
		return this.mtId;
	}

	public void setMtId(Integer mtId) {
		this.mtId = mtId;
	}

	@Column(name = "uid")
	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CompereListId))
			return false;
		CompereListId castOther = (CompereListId) other;

		return ((this.getMtId() == castOther.getMtId()) || (this.getMtId() != null
				&& castOther.getMtId() != null && this.getMtId().equals(
				castOther.getMtId())))
				&& ((this.getUid() == castOther.getUid()) || (this.getUid() != null
						&& castOther.getUid() != null && this.getUid().equals(
						castOther.getUid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMtId() == null ? 0 : this.getMtId().hashCode());
		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		return result;
	}

}